package com.mingqijia.gassafety.webserver.service;

import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.CustomerSubsHistoryRequest;
import com.mingqijia.gassafety.webserver.request.client.BindSubsRequest;
import com.mingqijia.gassafety.webserver.request.client.ClientDtuListRequest;
import com.mingqijia.gassafety.webserver.response.CustomerSubsHistoryResponse;

public interface CustomerSubsHistoryService {

    /**
     * 用户绑定户号
     * @param request
     */
    String bindSubs(BindSubsRequest request);

    /**
     * 用户解绑户号
     * @param request
     * @return
     */
    String unbindSubs(BindSubsRequest request);

    /**
     * 获得客户的用户绑定记录
     * @param request
     * @return
     */
    PageUtil<CustomerSubsHistoryResponse> getListBySubs(CustomerSubsHistoryRequest request);

    void isBindSus(ClientDtuListRequest request, String spId);

    /**
     * 校验微信h5请求参数
     * @param orgId
     * @param phone
     * @param vccUserId
     */
    void checkH5Request(String orgId , String phone,  String vccUserId);

    /**
     * 是否是用微信openid绑定户号的企业
     * @param orgId
     * @return
     */
    boolean isUseOpenIdBindSubsOrgId(String orgId);
}
